﻿<%@ Page Language="C#" EnableViewState="false" AutoEventWireup="true" CodeBehind="Search.aspx.cs" Inherits="GUI.Pages.Mark.Search" %>

<!DOCTYPE html>
<%@ OutputCache Duration="180" VaryByParam="none" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <base target="_parent" />
</head>
<body>

    <script language="javascript" src="http://timdiemthi.com/boxes/makecombo.js?v=<%=DateTime.Now.ToString("yyyyMMddHHmm") %>"></script>
    <script language="javascript" src="http://timdiemthi.com/boxes/box_cover_vcc.js?v=<%=DateTime.Now.ToString("yyyyMMddHHmm") %>"></script>

    <script language="javascript">
        function bbDoSearch() {
            var u = document.getElementById("u");
            var u1 = document.getElementById("u1");
            var s = document.getElementById("s");
            var dmain = "http://timdiemthi.com/";
            if (s.value == 'Nhap so bao danh hoac ho ten') {
                alert("Bạn phải nhập từ khóa tìm kiếm");
                return;
            }
            else {
                var screenW = screen.width;
                var screenH = screen.height;
                var tabdefault_ = document.getElementById("tabdefault");
                var bool = true;
                var index = "";
                var value = "";
                if (tabdefault_.value == "totnghiep") {
                    index = u1.selectedIndex;
                    value = u1.value.toUpperCase();
                }
                else {
                    index = u.selectedIndex;
                    value = u.value.toUpperCase();
                }
                var url = "http://soha.vn/tradiem.html?dt=" + location.hostname + "&ui=" + index + "&u=" + value.toUpperCase() + "&s=" + s.value + "&y=" + year + "&t=" + tabdefault_.value;
                window.open(url, '_parent');
            }
        }
    </script>
</body>
</html>
